package com.example.template.core.dao;
/**
 * Description: //TODO
 * Created by meko on 19-3-15下午5:22
 */



import com.example.template.core.entity.BaseEntity;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 *@InterfaceName BaseDao
 *@Description TODO
 *@Author meko
 *@Date 19-3-15 下午5:22
 *@Version 1.0
 **/
public interface BaseDao<T extends BaseEntity>{
    T getEntityById(final Class<T> cls, final Integer id);

    int addEntity(final T entity);

    int updateEntity(final T entity);


    List<T> selectAll(Class<T> entityClass,final T entity);

    int deleteEntityById(Class<T> entityClass,Integer id);
}
